package com.tiankun.eurekasellgoods.mapper;

import com.tiankun.eurekasellgoods.pojo.Goods;
import com.tiankun.eurekasellgoods.pojo.Spike;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA
 * User: shenhui
 * Date: 2020/11/11
 * Description
 * Version: V1.0
 */
public interface GoodsMapper extends Mapper<Goods> {
    List<Map<String, Object>> goodsList(Integer shopId);
    List<Map<String, Object>> goodsNameList(Integer shopId,String godName);
    List<Map<String, Object>> goodsStateList(Integer shopId,Integer godState);
    List<Map<String, Object>> goodsTypeList(Integer shopId,Integer godType);
    List<Map<String, Object>> goodsDetails(Integer godId);
    List<Map<String, Object>> goodsHot();
    List<Map<String, Object>> goodsSpike(Integer shopId);
    List<Map<String, Object>> goodsSpikeDetails(Integer spkId);
    List<Map<String, Object>> nameSpike(Integer shopId,String godName);
    List<Map<String, Object>> typeSpike(Integer shopId,Integer godType);
    List<Map<String, Object>> stateSpike(Integer shopId);
    List<Map<String, Object>> moveGoodsDetails(Integer godId);
    List<Map<String, Object>> moveAscSpike();
    List<Map<String, Object>> timeSpike(String startDate,String endDate);
   Map<String, Object>getId();
   int addGoodsImages (Integer godId,String giUrl);
   List<Map<String, Object>> typeAll();
   int GoodsCount (Integer godId);
   Map<String,Object>getSpikeId();
   Map<String,Object>getSpikeRedis(Integer spikeId);



}
